<div class="content-form edit-aluno">
    <?php echo $this->partial('aluno/menu.phtml', array('urlbase'=>$this->urlbase,'urlfoto'=>$this->urlfoto,'modulo'=>$this->modulo,'controller' => $this->controller, 'action' => $this->action, 'data' => $this->data)); ?>
    
    <div class="content-list row_bc">
        
        <h2><?php echo $this->Menualuno_nom[$this->action];?></h2>

        <table id="tlist">
            <thead>
                <tr>
                    <th>Teste</th>
                    <th>Encerramento</th>
                    <th>Status</th>
                    <th class="bc">
                        <a class="btn-pdr" target="_blank" href="<?php echo $this->urlbase.'/'.$this->modulo.'/'.$this->controller.'/relatoriolista/id/'.$this->data['ALU_ID']; ?>">Imprimir Listas</a>
                    </th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($this->result as $row){ ?>
                <tr>
                    <td><?php echo $row['PUL_NOM']; ?></td>
                    <td>
                        <?php echo substr(Datetools::invertDH_D($row['PUL_DATENC']),0,5); ?>
                        &nbsp; às &nbsp; 
                        <?php echo Datetools::hora_hm($row['PUL_HORENC']); ?>
                    </td>
                    <td>
                    <?php
                        if($row['PUL_STA'] == 1) echo 'Aberta';
                        else if($row['PUL_STA'] == 2) echo 'Encerrada';
                    ?>
                    </td>
                    <td class="bc">
                        <?php if($this->per_edt && $row['PUL_STA'] == 2){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'boletimdesempenholista', 'id' => $row['ALU_ID'],'pul_id' => $row['PUL_ID'], 'op'=>'list')); ?>">Questões</a><?php }?>
                        <?php if($this->per_edt && $row['PUL_STA'] == 2){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'boletimdesempenholista', 'id' => $row['ALU_ID'],'pul_id' => $row['PUL_ID'], 'op'=>'edit')); ?>">% Disciplina</a><?php }?>
                    </td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>